import request from '@/utils/request'

// 创建订单（下单）
export const createOrder = (data) => request.post('/order/create', data)

// 获取当前用户订单列表
export const getMyOrders = (userId) => request.get(`/order/my?userId=${userId}`)

// 获取订单详情
export const getOrderDetail = (orderId) => request.get(`/order/detail/${orderId}`) 